<!--
 * @Description: 
 * @Author: lijiajin
 * @Date: 2020-07-06 09:04:53
 * @LastEditTime: 2020-07-10 11:59:50
 * @LastEditors: lijiajin
 -->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="format-detection" content="telephone=no,email=no,address=no">
    <title>网站管理-导航设置</title>
    <link rel="stylesheet" href="./icon/iconfont.css">
    <link rel="stylesheet" href="./plugins/layui/css/layui.css">
    <link rel="stylesheet" href="./css/nanoscroller.css">
    <link rel="stylesheet" href="./plugins/jquery-ui/jquery-ui.min.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/style.css">
    <script src="./js/JQuery2.1.4.js"></script>
    <script src="./plugins/layui/layui.js"></script>
    <script src="./js/spin.min.js"></script>
    <script src="./js/loading.js"></script>

</head>

<body>
<div class="wrap-box wrap-webmg wrap-webmg-navigation">
    <p class="title-h1">导航设置</p>
    <div class="content-box content-box-noradius">
        <ul class="inside-page-top-exchange">
            <li><a href="./web-manage-navigation.html">顶部导航</a></li>
            <li class="active"><a href="./web-manage-navigation-bottom.html">底部导航</a></li>
            <div class="clear"></div>
        </ul>
        <div class="content-scroll-box content-scroll-box6 nano">
            <div class="content-scroll nano-content">
                <div class="item-box no-pdt" data-translate="true" data-id="1">
                    <p class="item-title">导航结构<span>（鼠标拖住导航上下移动可以给导航排序）</span></p>
                </div>
                <ul class="navigation-list sortable">
                    <li>
                        <i class="icon iconfont icontuodong"></i>
                        <span>Home</span>
                        <a href="./web-manage-navigation-bottom-edit.html" class="edit">编辑</a>
                        <a href="javascript:;"
                           data-url=""
                           data-id=""
                           data-parent="li"
                           class="ajax-list-delete-btn">删除</a>
                    </li>
                    <li>
                        <i class="icon iconfont icontuodong"></i>
                        <span>Home</span>
                        <a href="./web-manage-navigation-bottom-edit.html" class="edit">编辑</a>
                        <a href="javascript:;"
                           data-url=""
                           data-id=""
                           data-parent="li"
                           class="ajax-list-delete-btn">删除</a>
                    </li>
                    <li>
                        <i class="icon iconfont icontuodong"></i>
                        <span>Home</span>
                        <a href="./web-manage-navigation-bottom-edit.html" class="edit">编辑</a>
                        <a href="javascript:;"
                           data-url=""
                           data-id=""
                           data-parent="li"
                           class="ajax-list-delete-btn">删除</a>
                    </li>
                </ul>
                <div class="item-box item-btn">
                    <div class="item">
                        <a href="javascript:;" class="layui-btn ajax-form-commit" data-bottom="true" onclick="checkNavigation(this);">添加导航</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="./js/echarts.min.js"></script>
<script src="./js/jquery.nanoscroller.js"></script>
<script src="./plugins/jquery-ui/jquery-ui.min.js"></script>
<script src="./js/check.js"></script>
<script src="./js/common.js"></script>
<script src="./js/form-commit.js"></script>
<script>
    $(function() {
        $(".sortable").sortable({
            cursor: "move",
            items: "li", //只是tr可以拖动
            opacity: 0.6, //拖动时，透明度为0.6
            revert: false, //释放时，增加动画
            update: function(event, ui) { //更新排序之后
                var categoryids = $(this).sortable("toArray");
                var $this = $(this);

            }
        });
        $(".sortable").disableSelection();
    });
</script>
</body>

</html>